#pragma once

#include <BaseCommand.h>

class GraphicsBaseItem;

class RotateCommand : public BaseCommand
{
public:
	RotateCommand(GraphicsBaseItem* item, qreal oldAngle, qreal newAngle);
	~RotateCommand();
protected:
	void undo()override;
	void redo()override;
private:
	GraphicsBaseItem* m_item = nullptr;
	qreal m_oldAngle = 0;
	qreal m_newAngle = 0;
};

